package com.bookstore.common.exception;

/**
 * 用户状态异常
 * 当用户状态不正常（禁用、锁定等）时抛出
 */
public class UserStatusException extends AuthenticationException {
    private static final long serialVersionUID = 1L;

    /**
     * 用户状态
     */
    private Integer userStatus;

    public UserStatusException(String message) {
        super(message);
    }

    public UserStatusException(String message, Long userId, String username, Integer userStatus) {
        super(message, userId, username);
        this.userStatus = userStatus;
    }

    public UserStatusException(String errorCode, String message, Long userId, String username, Integer userStatus) {
        super(errorCode, message, userId, username);
        this.userStatus = userStatus;
    }

    public Integer getUserStatus() {
        return userStatus;
    }
}